package org.example.maven.pojo.operation;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class SearchOperate {
    private String username;
    private String ipAddress;
    private String operateType;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 匹配前端格式
    private LocalDateTime startTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") // 匹配前端格式
    private LocalDateTime endTime;
}
